﻿using System.Collections;
using FX.CC.Andon.Entity;
using FX.CC.Andon.Entity.BasicDataManage;
using FX.CC.Andon.Service.Service;
using FX.CC.Andon.Utility.Json;
using FX.CC.Andon.Entity.Service;
using System;
using System.Collections.Generic;

namespace FX.CC.Andon.Business.Service
{
    /// <summary>
    /// 异常类别业务层
    /// </summary>
    public class KeyValueBiz
    {
        private readonly KeyValueService _dal = new KeyValueService();

        public bool AddListeningLine(IList<KeyValuePairEx<Guid, Guid>> list)
        {
            return _dal.AddListeningLine(list);
        }

        public bool AddListeningError(IList<KeyValuePairEx<Guid, string>> list)
        {
            return _dal.AddListeningError(list);
        }

        public void DeleteListeningLine(Guid sessionID) {
            _dal.DeleteListeningLine(sessionID);
        }

        public void DeleteListeningError(Guid sessionID) {
            _dal.DeleteListeningError(sessionID);
        }

        public IList<KeyValuePairEx<Guid, string>> GetAllWorkShop()
        {
            return _dal.GetAllWorkShop();
        }

        public IList<KeyValuePairEx<Guid, string>> GetAllLine()
        {
            return _dal.GetAllLine();
        }

        public IList<KeyValuePairEx<string, string>> GetAllEType()
        {
            return _dal.GetAllEType();
        }
    }
}
